package com.kevin.learn.vocabulary;

import java.util.Iterator;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

public class Util {
    public static String getVocabularyDate(String path){
    	StringBuffer sb = new StringBuffer("/n");
    	try {
			SAXReader reader = new SAXReader();
			Document document = reader.read("");
			Element rootE = document.getRootElement();
			Iterator<Element> rootIt = rootE.elementIterator();
			while (rootIt.hasNext()) {
				Element subE = rootIt.next();

				if (null != subE) {
					subE.elementTextTrim("id");
				}
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
		return sb.toString();
    }
}
